package org.chen.template;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("movie_template")
public class MovieTemplate extends Model<MovieTemplate> {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("template_name")
    private String templateName;    // 模板名称
    @TableField("template_content")
    private String templateContent; // 模板内容（JSON格式）
    @TableField("description")
    private String description;     // 模板描述
    @TableField("is_enabled")
    private Boolean isEnabled;      // 是否启用
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}